package com.itheima.Test;

public class MilkBox {
    private int milkCount;
    private int day;
    private boolean flag = false;

    public void put(int milkCount, int day) {
        this.milkCount = milkCount;
        this.day = day;
        System.out.println("送奶工第" + day + "天往奶箱放第" + milkCount + "瓶牛奶");
    }

    public void take() {
        System.out.println("少爷第" + day + "天从奶箱里取走了第" + milkCount + "瓶牛奶并喝了");
    }

    public int getMilkCount() {
        return milkCount;
    }

    public void setMilkCount(int milkCount) {
        this.milkCount = milkCount;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }
}
